<#if ctrl.getName() != 'toolbar'>
  <#assign ModelsName>${ctrl.getCodeName()?lower_case}Models</#assign>
<#else>
  <#assign ModelsName = 'toolBarModels' />
</#if>
<#assign viewStyle = "DEFAULT"/>
<#if view.getViewStyle?? && view.getViewStyle()??>
  <#assign viewStyle = view.getViewStyle()/>
</#if>
<#if ctrl.render??>
${ctrl.render.code}
<#else> 
<view-toolbar<#if viewStyle != "DEFAULT"> mode="${viewStyle}"</#if> :model="${ModelsName}" @item-click="${ctrl.name?lower_case}_click.apply(_self, arguments)"/>
</#if>